package com.service.manage.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mapper.manage.PermissionDao;
import com.po.Permission;
import com.service.manage.PermissionService;

@Service
public class PermissionServiceImp implements PermissionService {

	@Resource(name="permissionDao")
	public PermissionDao permissionDao;
	@Override
	public List<Permission> getPermissionList(Permission permission) {
		
		List<Permission> list = permissionDao.getPermissionList(permission);
		return list;
	}

	@Override
	public int getPermissionCount(Permission permission) {
		
		int result = permissionDao.getPermissionCount(permission);
		return result;
	}
	
	@Override
	public int delPermission(Permission permission) {

		int result = permissionDao.delPermission(permission);
		return result;
	}

	@Override
	public int delPermissionList(String[] permissionid) {
		
		int result = permissionDao.delPermissionList(permissionid);
		return result;
	}

	@Override
	public int updatePermission(Permission permission) {
		
		int result = permissionDao.updatePermission(permission);
		return result;
	}

	@Override
	public 
	int addPermission(Permission permission) {

		int result = permissionDao.addPermission(permission);
		return result;
	}

	

}
